package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingPlan;
import com.zzyl.vo.NursingPlanVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description NursingPlanMapper
 * @Author lifuyun
 * @Date 2024-08-27
 */
@Mapper
public interface NursingPlanMapper {
    /**
     * 查询所有护理计划
     * @return
     */
    List<NursingPlanVo> selectAllNursingPlan();

    /**
     * 新增护理计划
     * @param nursingPlan
     */
    void insertNursingPlan(NursingPlan nursingPlan);

    /**
     * 条件分页查询护理计划
     * @param name
     * @param status
     * @return
     */
    Page<NursingPlanVo> selectByPage(String name, Integer status);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    NursingPlan selectById(Long id);

    /**
     * 修改护理计划
     * @param nursingPlan
     */
    void updateById(NursingPlan nursingPlan);

    /**
     * 删除护理计划
     * @param id
     */
    void delectById(Long id);

    /**
     * 护理项目启用禁用
     * @param id
     * @param status
     */
    void updateNursingPlanStatus(@Param("id") long id, @Param("status") int status);
}
